package com.mycity.services;

import org.jasypt.util.password.BasicPasswordEncryptor;

import com.mycity.bean.User;
import com.mycity.dao.UserDao;


public class LoginService {
	private UserDao userDao=new UserDao();
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public User login(String email, String password) throws Exception{
		User user;
		try {
			user = userDao.retrieveUserByEmail(email, password);



		} catch (Exception e) {
			return new User();
		}
		return user;
	}

}
